package org.dey.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dey.entity.Result;
import org.dey.pojo.Member;
import org.dey.pojo.PageVo;
import org.dey.pojo.User;

import java.util.List;

/**
 * @author deyran
 * @classname
 * @see IService
 */
public interface MemberService extends IService<Member> {

    //查
    public PageVo<Member> querymember(Member member, int pageNum, int pagesize);

    //增
    public Result insertmember(Member member);

    //删
    public Result delmember(int id);

    //修改前先根据id查到该数据
    public Member querymemberbyid(int id);

    //根据id修改
    public Result updatememberbyid(Member member);

    public Member getByName(String name);

    public List<User> getUserRole();

    public Member queryRaByRaId(int id);
}
